package cn.itcast.bos.service.region;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.itcast.bos.dao.region.IRegionDao;
import cn.itcast.bos.domain.PageBean;
import cn.itcast.bos.domain.Region;

@Service
@Transactional
public class RegionServiceImpl implements IRegionService {

	@Resource
	private IRegionDao regionDao;
	@Override
	public void saveBatch(List<Region> list) {
		for (Region region : list) {
			regionDao.save(region);
		}
	}
	@Override
	public void pageQuery(PageBean pageBean) {
		regionDao.pageQuery(pageBean);
	}
	@Override
	public List<Region> findAll() {
		return regionDao.findAll();
	}

}
